﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Assets.Script
{
    public enum PropType
    {
        nullData=-1,
        magnet,
        speed,
        level,
        coins
    }
    public class AdvertisingData
    {
        //        "bgIcon": "Texture2D/ICN_Magnet",
        //"dis": "+1.5k",
        //"name": "COINS",
        //"type": 3,
        //"num": 1500

        public string bgIcon;
        public string dis;
        public string name;
        public PropType type;
        public int num;
    }
    public class AdditionData
    {
        //        "name": "Start Level",
        //"bgIcon": "Texture2D/ICN_Level2",
        //"releveNum": 800,
        //"isAdd": true,
        //"nowLevel": 1,
        //"type": 2

        public string name;
        public string bgIcon;
        public int releveNum;
        public bool isAdd;
        public int nowLevel;
        public PropType type;
    }
    public class SkinData
    {
        //        "icon": "thumbnail/common/Snack_1",
        //"isme": false,
        //"isbuy": false,
        //"iszuanshi": false,
        //"ishipin": false,
        //"zuanshiNum": 4,
        //"shipinNum": 1,
        //"issuo": true

        public string icon;
        public bool isme;
        public bool isbuy;
        public bool iszuanshi;
        public bool ishipin;
        public int zuanshiNum;
        public int shipinNum;
        public bool issuo;
    }
    public enum GameOverType
    {
        enemy,
        time,
        boss
    }
    public class SnakeData
    {
        public string name;
    }
    public class JiesuoSkinData
    {
        public string name;
    }
    public class GameDataSprite:Singleton<GameDataSprite>
    {
        public List<AdditionData> additionDatas = new List<AdditionData>();
        public List<AdvertisingData> advertisingDatas = new List<AdvertisingData>();
        public Dictionary<int, List<SkinData>> allSkinDatas = new Dictionary<int, List<SkinData>>();
        public List<SnakeData> snakeDatas = new List<SnakeData>();
        public List<JiesuoSkinData> jiesuoSkinDatas = new List<JiesuoSkinData>();

        public int playerSpeed = 0;
        public int playerMagnet = 0;
    }
}
